package com.idp.metadata;

import com.idp.config.ServerProperty;

public class IDPMetadata {

    public static final String IDP_FILE_PATH = ServerProperty.getServerInstance().getProperty("idpMetadataFilePath");
    public static final String KEY_STORE_PATH = ServerProperty.getServerInstance().getProperty("keystorePath");
    public static final String KEY_STORE_PASS = ServerProperty.getServerInstance().getProperty("keystorePass");
    public static final String ALIAS_NAME = ServerProperty.getServerInstance().getProperty("aliasName");

    private static MetadataBean idpMetadata;

    private IDPMetadata() {

    }

    public static MetadataBean getInstance() {
        if (idpMetadata == null) {
            idpMetadata = new MetadataBean(IDP_FILE_PATH);
        }
        return idpMetadata;
    }
}
